package org.grow.present.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 贷款表
 * @TableName loans
 */
@TableName(value ="loans")
@Data
public class Loans {
    /**
     * id
     */
    @TableId(value = "loa_id", type = IdType.AUTO)
    private Integer loaId;

    /**
     * 贷款编号，自动生成
     */
    @TableField(value = "loa_no")
    private String loaNo;

    /**
     * 企业ID

     */
    @TableField(value = "loa_com_no")
    private String loaComNo;

    /**
     * 银行id
     */
    @TableField(value = "loa_bank_id")
    private Integer loaBankId;

    /**
     * 贷款期限
     */
    @TableField(value = "loa_lis_id")
    private Integer loaLisId;

    /**
     * 贷款用途
     */
    @TableField(value = "loa_use")
    private String loaUse;

    /**
     * 贷款积分
     */
    @TableField(value = "loa_integral")
    private String loaIntegral;

    /**
     * 贷款利率
     */
    @TableField(value = "loa_rate")
    private String loaRate;

    /**
     * 贷款状态 0 未审批 1平台已通过 2 平台已驳回 3银行已审核 4 银行驳回，5待签约，6 待银行放款 7，放款完成
     */
    @TableField(value = "loa_state")
    private String loaState;

    /**
     * 贷款时间
     */
    @TableField(value = "loa_time")
    private LocalDateTime loaTime;

    /**
     * 贷款金额
     */
    @TableField(value = "loa_money")
    private Integer loaMoney;

    /**
     * 到期时间
     */
    @TableField(value = "loa_end_time")
    private LocalDateTime loaEndTime;

    /**
     * 删除标识 0 正常 2 删除
     */
    @TableField(value = "loa_del")
    private String loaDel;

    /**
     * 收款账户
     */
    @TableField(value = "b_account_no")
    private String bAccountNo;

    /**
     * 收款人
     */
    @TableField(value = "b_name")
    private String bName;

    /**
     * 开户行
     */
    @TableField(value = "b_bank_name")
    private String bBankName;

    /**
     * 身份证号
     */
    @TableField(value = "b_idcard")
    private String bIdcard;

    /**
     * 签约材料
     */
    @TableField(value = "loa_sign")
    private String loaSign;
}